/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package composants;


/**
 *
 * @author Valentin
 */
public class Voyant{

	boolean vert;
	boolean orange;
	boolean rouge;


	public Voyant() {
		vert=false;
		orange=false;
		rouge=false;
	}


	public void afficher(boolean un, boolean deux, boolean trois)
	{
		rouge=un;
		orange=deux;
		vert=trois;

	}


	public void allumerVert()
	{
		afficher(false, false, true);
	}

	public void allumerOrange()
	{
		afficher(false, true, false);
	}

	public void allumerRouge()
	{
		afficher(true, false, false);
	}

	public void eteindre()
	{
		afficher(false, false, false);
	}

	public boolean isVert() {
		return vert;
	}

	public boolean isOrange() {
		return orange;
	}

	public boolean isRouge() {
		return rouge;
	}



}
